package com.youlu.campus.activity.repositories;

import com.youlu.campus.activity.entity.UserLotteryInfo;
import org.springframework.data.mongodb.repository.MongoRepository;

import javax.validation.constraints.NotNull;

/**
 * 用户抽奖信息
 *
 * @Description: UserLotteryInfoRepository
 * @Date 2025/7/31
 * @author: su
 */
public interface UserLotteryInfoRepository extends MongoRepository<UserLotteryInfo, String> {

    UserLotteryInfo findByActivityIdAndUserId(@NotNull(message = "活动ID不能为空") String activityId, @NotNull(message = "用户ID不能为空") String userId);

}
